

/**
 * @author Lukas Koell
 * @author David Medenjak
 * @author Johannes Riedmann
 */
class LinkedItem {
    
    private StringTree value;
    private LinkedItem next;
    private LinkedItem prev;

    LinkedItem(StringTree value) {
        this.value = value;
        this.next = null;
        this.prev = null;
    }

    void setNext(LinkedItem next) {
        this.next = next;
    }

    LinkedItem getNext() {
        return next;
    }

    void setPrevious(LinkedItem prev) {
        this.prev = prev;
    }

    LinkedItem getPrevious() {
        return prev;
    }

    StringTree getValue() {
        return value;
    }
}
